<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./lib/vue2.4.4.js"></script>
</head>

<body>
    <div id="app">
        <!-- `:` 即 `v-bind` 只能实现单向绑定-->
        <!-- <input type="text" :value="msg" style="width: 400px;"> -->

        <!-- `v-model` 只能作用于表单元素 input(text, radio, email ...), select, checkbox, textarea -->
        <input type="text" v-model="msg" style="width: 100%;">
        <h4>{{msg}}</h4>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: '床前明月光，疑是地上霜；举头望明月，低头思故乡。'
            },
            methods: {
            }
        });
    </script>
</body>

</html>